package com.hsnn.medstgmini.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {
 
	public static String getValue(String fileNamePath,String key) throws IOException{
		Properties props = new Properties();
		InputStream in = null;  
        try {  
            in = new FileInputStream(fileNamePath);  
            props.load(in);  
            String value = new String(props.getProperty(key).getBytes("ISO-8859-1"), "utf-8");  
            return value;  
        } catch (IOException e) {  
            e.printStackTrace();  
            return null;  
        } finally {  
            if (null != in)  
                in.close();  
        }  
	}
}